﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage1.Master" AutoEventWireup="true" CodeBehind="DiscuEvent.aspx.cs" Inherits="GUI_Web.DiscuEvent" Theme="Skin1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="telaDiscEvento centralizado">
        <div class="titulo"> Discussão de Evento </div>
            <table id="tbEvento" runat="server" cellspacing="0" cellpadding="5"
                style="font-size: 12px; border-collapse:collapse;  border-width: thick; text-align: center;
                CLEAR: both;">            
                <tr id="trTbEvent" runat="server" >
                    <td>
                        <div runat="server" id="grid">
                        <asp:GridView ID="gvEvent" runat="server"
                                CellPadding="5" AllowPaging="false" Width="100%"
                                onrowcommand="gvEvent_RowCommand" autogeneratecolumns="False" 
                                onrowdatabound="gvEvent_RowDataBound" >
                            <Columns>                                
                                <asp:TemplateField ShowHeader="False">
                                    <HeaderStyle BackColor="#cccccc" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="btnDiscu" runat="server" CommandName="discutir" CommandArgument='<%# Eval("id")%>'
                                            Text="Discutir" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="idEvent" HeaderText="ID Evento">
                                    <HeaderStyle HorizontalAlign="Left" BackColor="#cccccc" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="id" HeaderText="id" Visible="false">
                                    <HeaderStyle HorizontalAlign="Left"/>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField Visible="false" />
                                <asp:BoundField DataField="descricao" HeaderText="Descrição" >
                                    <HeaderStyle HorizontalAlign="Left" BackColor="#cccccc" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="lider" HeaderText="Líder" >
                                    <HeaderStyle HorizontalAlign="Left" BackColor="#cccccc" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="data" HeaderText="Data">
                                    <HeaderStyle HorizontalAlign="Left" BackColor="#cccccc" />
                                    <ItemStyle HorizontalAlign="Center"  />
                                </asp:BoundField>                                
                            </Columns>
                        </asp:GridView>
                        </div>                        
                    </td>
                </tr> 

                <tr id="trDiscu" runat="server">
                    <td>
                    <div>
                        <asp:Label ID="lblNome" runat="server" />
                    </div>
                    <div>
                        <asp:TextBox ID="txtDescrição" runat="server" Enabled="false" Width="100%" 
                            Height="56px" />
                    </div>
                    Comente:
                    <div>
                        <asp:TextBox ID="txtComent" runat="server" Width="100%" 
                            Height="56px" TextMode="MultiLine" />
                    </div>
                    <div style="text-align:right;" >
                        <asp:Button ID="btnAdd" runat="server" Text="Comentar" onclick="btnAdd_Click" />
                    </div>
                    <br />
                    <div>
                        <table>
                            <tr>
                                <td colspan="2">Comentários</td>
                            </tr>
                            <tr>
                                <asp:Literal ID="lit01" runat="server" />
                            </tr>
                            <tr>
                                <asp:Literal ID="lit02" runat="server" />
                            </tr>
                            <tr>
                                <asp:Literal ID="lit03" runat="server" />
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnVolta" runat="server"  Text="Voltar" 
                                        onclick="btnVolta_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    </td>
                </tr>
            </table>
    </div>
</asp:Content>
